package com.bt.table.ppt;

/**
 * Ret_mtrlId entity. @author MyEclipse Persistence Tools
 */

public class Ret_mtrlId implements java.io.Serializable {

	// Fields

	private String mtrl_lot_id;
	private String mtrl_prod_id_fk;
	private String wo_id_fk;
	private String ope_id_fk;
	// Constructors

	/** default constructor */
	public Ret_mtrlId() {
	}

	/** full constructor */
	public Ret_mtrlId(String mtrl_lot_id, String mtrl_prod_id_fk,
			String wo_id_fk, String ope_id_fk) {
		this.mtrl_lot_id = mtrl_lot_id;
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
		this.wo_id_fk = wo_id_fk;
		this.ope_id_fk = ope_id_fk;
	}

	// Property accessors

	public String getMtrl_lot_id() {
		return this.mtrl_lot_id;
	}

	public void setMtrl_lot_id(String mtrl_lot_id) {
		this.mtrl_lot_id = mtrl_lot_id;
	}

	public String getMtrl_prod_id_fk() {
		return this.mtrl_prod_id_fk;
	}

	public void setMtrl_prod_id_fk(String mtrl_prod_id_fk) {
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
	}

	public String getWo_id_fk() {
		return this.wo_id_fk;
	}

	public void setWo_id_fk(String wo_id_fk) {
		this.wo_id_fk = wo_id_fk;
	}
	
	public String getOpe_id_fk() {
		return ope_id_fk;
	}

	public void setOpe_id_fk(String ope_id_fk) {
		this.ope_id_fk = ope_id_fk;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((mtrl_lot_id == null) ? 0 : mtrl_lot_id.hashCode());
		result = prime * result
				+ ((mtrl_prod_id_fk == null) ? 0 : mtrl_prod_id_fk.hashCode());
		result = prime * result
				+ ((ope_id_fk == null) ? 0 : ope_id_fk.hashCode());
		result = prime * result
				+ ((wo_id_fk == null) ? 0 : wo_id_fk.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Ret_mtrlId other = (Ret_mtrlId) obj;
		if (mtrl_lot_id == null) {
			if (other.mtrl_lot_id != null)
				return false;
		} else if (!mtrl_lot_id.equals(other.mtrl_lot_id))
			return false;
		if (mtrl_prod_id_fk == null) {
			if (other.mtrl_prod_id_fk != null)
				return false;
		} else if (!mtrl_prod_id_fk.equals(other.mtrl_prod_id_fk))
			return false;
		if (ope_id_fk == null) {
			if (other.ope_id_fk != null)
				return false;
		} else if (!ope_id_fk.equals(other.ope_id_fk))
			return false;
		if (wo_id_fk == null) {
			if (other.wo_id_fk != null)
				return false;
		} else if (!wo_id_fk.equals(other.wo_id_fk))
			return false;
		return true;
	}


}